refactoring for cppcheck "The scope of the variable can be reduced" (#677)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 1 Feb 2021 18:40:49 +0000 (11:40 -0700)
committerGitHub <noreply@github.com>
Mon, 1 Feb 2021 18:40:49 +0000 (11:40 -0700)
commit89ac4774852f47ce8ce6181e241e5af83dce3ff5
tree0d19d5bd985f7f6e02e7862707b334b860ab7b68
parentbee1dae4fd5a7d052e88624f4b378dbdc2d96863
refactoring for cppcheck "The scope of the variable can be reduced" (#677)

* refactoring for cppcheck "The scope of the variable can be reduced"

The c++17 "If Statement with Initializer" often are useful in resovling
these.

* more scope reduction.

* and another.
17 files changed:
csv_util.cc
duplicate.cc
garmin.cc
gui/filterdata.cc
gui/mainwindow.cc
igc.cc
jeeps/gpsapp.cc
jeeps/gpsusbcommon.cc
jeeps/gpsusbwin.cc
lowranceusr.cc
magproto.cc
mapasia.cc
mmo.cc
position.cc
skytraq.cc
tpg.cc
wbt-200.cc